package com.xtianzhuang.www.entity.params;

public class WxParam {

	/**
	* 请求CODE
	*/
	public static final String URL_OAUTH2_AUTHORIZE_CODE_GET = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=${APPID}&redirect_uri=${REDIRECT_URI}&response_type=code&scope=${SCOPE}&state=${STATE}#wechat_redirect";

	/**
	 * 获得OAuth2的访问Token 
	 */
	public static final String URL_OAUTH2_ACCESS_TOKEN_GET = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=${APPID}&secret=${SECRET}&code=${CODE}&grant_type=authorization_code";

	/**
	 * 获取 access_token 
	 */
	public static final String URL_ACCESS_TOKEN_GET = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${APPID}&secret=${APPSECRET}";

	/**
	 * 获取用户基本信息(UnionID机制)
	 */
	public static final String URL_USER_INFO_GET = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=${ACCESS_TOKEN}&openid=${OPENID}&lang=zh_CN";

	/**
	* 微信网页开发,获取api_ticket
	*/
	public static final String URL_JSAPITICKET_GET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=${ACCESS_TOKEN}";
}
